#include "orden_anadet.h"

Orden_anadet::Orden_anadet(QObject *parent):QDjangoModel(parent)
{
    setForeignKey("orden",new Orden(this));
    setForeignKey("ana_det",new Ana_Det(this));
}

int Orden_anadet::getId_orden_anadet() const
{
    return id_orden_anadet;
}

void Orden_anadet::setId_orden_anadet(int value)
{
    id_orden_anadet = value;
}

Orden *Orden_anadet::getOrden() const
{
    return (Orden *)foreignKey("orden");
}

void Orden_anadet::setOrden(Orden *orden)
{
    setForeignKey("orden",orden);
}

double Orden_anadet::getPorc_cobertura() const
{
    return porc_cobertura;
}
Ana_Det *Orden_anadet::getAna_det() const
{
    return (Ana_Det *)foreignKey("ana_det");
}

void Orden_anadet::setAna_det(Ana_Det *ana_det)
{
    setForeignKey("ana_det",ana_det);
}

void Orden_anadet::setPorc_cobertura(double value)
{
    porc_cobertura = value;
}








